package com.mrdeer.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mrdeer.common.entity.sys.Permission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PermissionMapper extends BaseMapper<Permission> {
    /**
     * 通过用户ID获取
     *
     * @param userId
     * @return
     */
    List<Permission> findByUserId(@Param("userId") String userId);
}
